<?php

namespace app\admin\model;

use think\Model;
use think\model\concern\SoftDelete;

class User extends Model
{
    use SoftDelete;
    protected $deleteTime = 'delete_time';
    protected $defaultSoftDelete = 0;
    public function getVipTimeAttr($vip)
    {
        return date('Y-m-d H:i:s', $vip);
    }
    // 最后登录时间
    public function getLastTimeAttr($vip)
    {
        return date('Y-m-d H:i:s', $vip);
    }
}
